#!/bin/bash
curl -L http://dl.ohmydeck.net | sh

zenity --question --width=400 \
  --text="已安装最新稳定版decky插件！需要重启才能生效！, \
\n现在是否重启?"
if [ "$?" != 0 ]; then
  #NOTE: This code will never be reached due to "set -e", the system will already exit for us but just incase keep this
  echo "bye then! xxx"
  exit 0;
fi

reboot

echo "Done."
echo "Done."
